package routers

import (
	"github.com/gin-gonic/gin"
	"pic-text-pub/config"
	"pic-text-pub/handlers"
	"pic-text-pub/moders"
)

func Init() *gin.Engine {
	config.Init()
	moders.Init()
	r := gin.Default()
	r.POST("/add", handlers.Add)
	r.GET("list", handlers.List)
	return r
}
